﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace DataLayer.Database
{
    public class LogDB
    {
    
        public static List<LoglariCek_Result>  LogCek(int logTuru,DateTime baslangic, DateTime bitis,int islemTuru)
        {
            DBConnection cn = new DBConnection();
            return cn.ConnectDB.LoglariCek(baslangic,bitis,islemTuru,logTuru).ToList();
        }
        public static ArrayList tumIslemTurleriniCek()
        {
            DBConnection cn = new DBConnection();
            ArrayList islemTurleri = new ArrayList();
            
            foreach (ISLEM_TURU i in cn.ConnectDB.TumIslemTurleriniCek())
                islemTurleri.Add(new IslemTuru(i.IslemTuruID, i.IslemTuru));
            
            return islemTurleri;
        }
    }
}
